package com.fortune.dto.in.pUserMgt;

import com.fortune.constants.PatternConstants;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

public class PUserAddDto {
	@NotBlank(message="员工编号不能为空")
	@ApiModelProperty(required=true, example="员工编号")
	private String number;
	@NotBlank(message="员工姓名不能为空")
	@ApiModelProperty(required=true, example="员工姓名")
	private String name;
	@Pattern(regexp=PatternConstants.PHONE, message="手机号格式错误")
	@ApiModelProperty(required=true, example="手机号码")
	private String phone;
	@NotBlank
	@ApiModelProperty(required=true, example="岗位id")
	private String roleId;

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	@Override
	public String toString() {
		return "PUserAddDto{" +
				"number='" + number + '\'' +
				", name='" + name + '\'' +
				", phone='" + phone + '\'' +
				", roleId='" + roleId + '\'' +
				'}';
	}
}
